# P286-P288
# stringName = "Hello Python"
# for value in stringName:
#     print(value)
#
# print(len(stringName))
# print(stringName.count("l"))
# print(stringName.index("lo"))
# print(stringName.istitle())

# P289-P290
# 判断空白字符
specialString = "\t \n \r"
print(specialString.isspace())

# 判断字符串中是否只包含数字
specialString = "一"
print(specialString.isdigit())